package com.mvp.shq.washer.ui.feendBack;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.http.Api;
import com.mvp.shq.washer.http.RxSchedulers;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * Created by Administrator on 2017/9/4.
 */

public class Model implements FeedBackConstract.Model{

    @Override
    public Observable<BaseResult<String>> feedBack(String token, String userId, String message, Map<String, RequestBody> photos) {
        return Api.getInstance().service
                .feedBack(token,userId,message,photos)
                .compose(RxSchedulers.io_main());
    }
}
